﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using HKEA.CMS.Core.IDAL.Mtbl;
using HKEA.CMS.Core.Models;
using HKEA.CMS.Core.Utility;
using HKEA.CMS.Core.DALFactory;
using System.Linq.Dynamic;

namespace HKEA.CMS.Core.DAL.Mtbl
{
    public class mtblMembershipCategoryDAL:ImtblMembershipCategory
    {
        HKEA_CMSEntities model;
        mtblMembershipCategory nature;

        public mtblMembershipCategoryDAL()
        {
            model = DataAccess.GetModelInstance();
        }
        public static mtblMembershipCategoryDAL GetInstance()
        {
            return new mtblMembershipCategoryDAL();
        }

        public List<mtblMembershipCategory> GetAll()
        {
            var result = model.mtblMembershipCategories.Where(a => a.MembershipCategoryUID > 0);            
            return result.ToList();
        }
    }
}
